package com.vhall.component.entity.sign.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author shenqing
 * @date 2021/4/23 11:10
 */
@Data
public class SignAddToVpsReqVO implements Serializable {

    private static final long serialVersionUID = -2303234264658161348L;

    /**
     * VSS临时令牌
     */
    @ParamName("vss_token")
    private String vssToken;
    /**
     * paas房间id
     */
    @ParamName("room_id")
    @Pattern(regexp = "[0-9a-zA-Z_]{1,32}", message = "参数异常")
    @NotBlank(message = "不能为空")
    private String roomId;
    /**
     * 签到时长
     */
    @ParamName("show_time")
    @NotNull(message = "签到显示的时间不能为空")
    @Range(min = 1)
    private Integer showTime;

}
